<?php
class MenuGenerater{

	public function generate($listmenu){
		$textMenu = '<ul class="'.$this->getClassByTypeByLevel($type, $level).'">';
		foreach ($menulist as $menu){
			$textMenu .= '<li>';
			$textMenu .= '<a href="'.$menu->getMenuLink().'"><span>'.$menu->getMenuLabel().'('.$menu->getItem().')</span></a>';
			$textMenu .= $this->generate($menu);
			$textMenu .= '</li>';
		}
		$textMenu .= '</ul>';
		
	}
	
	private function getClassByTypeByLevel($type,$level){
		if($type = 0){
			switch ($level){
				case 1:return "";
				case 2:return "";
				case 3:return "";
				case 4:return "";
				case 5:return "";
				default :return "";
			}
		}else{
			switch ($level){
				case 1:return "";
				case 2:return "column-left-box-category";
				case 3:return "";
				case 4:return "";
				case 5:return "";
				default :return "";
			}
		}
	}
}